package com.gserver.game;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.gserver.commons.ByteArray;
import com.gserver.netty.domain.Message;

/**
 * 
 */
public abstract class ServerMainHandler implements GameHandler {
	public Logger logger = LoggerFactory.getLogger(this.getClass());

	public abstract void execute(Message message, ByteArray byteArray)
			throws GameRunTimeException;

	public void execute(Message message) throws GameRunTimeException {
		byte[] data = message.getData();
		execute(message, new ByteArray(data));
	}
}
